package com.demo.design.creational.singleton;

import java.util.ArrayList;
import java.util.List;

public class LazySingleton {
    private static List list;

    public LazySingleton() {}

    public static List getInstance() {
        if (list == null) {
            list = new ArrayList();
        }
        return list;
    }
}
